package com.csii.adhoc.dataready.serviceImpl;

import com.csii.adhoc.dataready.TDataCondPo;
import com.csii.adhoc.dataready.TDataConstant;
import com.csii.adhoc.dataready.mapper.TDataCondMapper;
import com.csii.adhoc.dataready.service.TDataCondService;
import com.csii.adhoc.exception.ParamValidityException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;

import java.util.List;
import java.util.Map;
import java.util.UUID;

/**
 * @description: 数据集接口实现类
 * @author: zyliu
 * @create: 2021-01-13 09:32
 */
@Service("tDataCondService")
@Slf4j
public class TDataCondServiceImpl implements TDataCondService {

    @Autowired
    TDataCondMapper tDataCondMapper;


    @Transactional
    @Override
    public int updateTDataCondByPrimaryKey(TDataCondPo tDataCondPo) {
        return tDataCondMapper.updateTDataCondByPrimaryKey(tDataCondPo);
    }

    @Transactional
    @Override
    public int updateByPrimaryKeySelective(TDataCondPo tDataCondPo) {
        return tDataCondMapper.updateByPrimaryKeySelective(tDataCondPo);
    }

    @Transactional
    @Override
    public int deleteTDataCondByPrimaryKey(String menuId) {
        return tDataCondMapper.deleteTDataCondByPrimaryKey(menuId);
    }

    @Transactional
    @Override
    public int deleteTDataCondNotInList(List list) {
        return tDataCondMapper.deleteTDataCondNotInList(list);
    }

    @Override
    public List<TDataCondPo> selectListTDataCond(String modelId) {
        return tDataCondMapper.selectListTDataCond(modelId);
    }

    @Override
    public TDataCondPo selectOneTDataCond(String modelId,String fldEnname) {
        return tDataCondMapper.selectOneTDataCond(modelId,fldEnname);
    }
    @Override
    public Map selCustDataDbTable(String sql){
        return tDataCondMapper.selCustDataDbTable(sql);
    }
}
